package com.mirror.facade;

import javax.annotation.Resource;
import javax.annotation.security.RolesAllowed;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.jboss.annotation.security.SecurityDomain;

import com.mirror.remote.IMirror;
import com.sun.xml.internal.ws.developer.UsesJAXBContext;

@Stateless
@SecurityDomain("MirrorDomain")
public class MirrorFacade implements IMirror {
	@Resource
	private SessionContext sessionContext;

	@PersistenceContext
	private EntityManager entityManager;

	@Override
	@RolesAllowed( { "mirrer", "admin" })
	public String testEjb() {
		// TODO Auto-generated method stub
		return "EJB was called success!";
	}

}
